<!-- creditos/_form -->
<%= form.hidden_field :conta_id, :value => params[:conta_id] if params[:conta_id] %>

<% unless params[:conta_id] %>
	<div>
		<%= form.label :conta_id, :class => "obrigatorio" %>
		<%= form.collection_select :conta_id,
			current_usuario.contas_ativas, :id, :nome,
			{ :prompt => true } %>
	</div>
<% end %>

<div>
	<%= form.label :data, :class => "obrigatorio" %>
	<%= form.text_field :data, :class => "datepicker", :value => I18n.localize(form.object.data) %>
</div>

<div>
	<%= form.label :valor, :class => "obrigatorio" %>
	<%= form.text_field :valor, :class => "valor", :autocomplete => "off" %>
</div>

<div>
	<%= form.label :observacao %>
	<%= form.text_field :observacao %>
</div>

